import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const office: AppRouteModule = {
  path: '/office',
  name: 'Office',
  component: LAYOUT,
  redirect: '/office/word',
  meta: {
    orderNo: 10,
    icon: 'ion:document-text-sharp',
    title: t('routes.office.office'),
  },
  children: [
    {
      path: 'word',
      name: 'Word',
      component: () => import('@/views/office/word/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.office.word'),
      },
    },
  ],
};

export default office;
